import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Write from '../components/common/Write.vue'
import About from '../components/common/About.vue'
import Article from '../components/common/Article.vue'
import Books from '../components/common/Books.vue'
import File from '../components/common/File.vue'
import HomePage from '../components/common/HomePage.vue'
import PLAY from '../components/common/PLAY.vue'
import Knowledge from '../components/common/Knowledge.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'HomePage',
        component: HomePage
        , meta: {
            isKeep: true,

        }
    },
    {
        path: '/Home',
        name: 'Home',
        component: Home
        , meta: {
            isKeep: false,

        }
    },
    {
        path: '/About',
        name: 'About',
        component: About
        , meta: {
            isKeep: true,

        }
    },
    {
        path: '/PLAY',
        name: 'PLAY',
        component: PLAY
        , meta: {
            isKeep: true,

        }
    },
    {
        path: '/Write',
        name: 'Write',
        component: Write
        , meta: {
            isKeep: false,

        }
    },
    {
        path: '/Article',
        name: 'Article',
        component: Article
        , meta: {
            isKeep: false,

        }
    },
    {
        path: '/Books',
        name: 'Books',
        component: Books
        , meta: {
            isKeep: true,

        }
    },
    {
        path: '/File',
        name: 'File',
        component: File
        , meta: {
            isKeep: true,

        }
    },
    {
        path: '/HomePage',
        name: 'HomePage',
        component: HomePage
        , meta: {
            isKeep: true,

        }
    },
    {
        path: '/Knowledge',
        name: 'Knowledge',
        component: Knowledge
        , meta: {
            isKeep: true,

        }
    }
]

const router = new VueRouter({
    routes
})

export default router
